
const promiseArr = [
    new Promise((resolve) => {
        resolve(1);
    }),
    new Promise((resolve) => {
        resolve(2);
    }),
    new Promise((resolve) => {
        resolve(30);
    })
];

promiseArr.forEach(i => {
    console.log(i);
    i.then((res) => {
        console.log(res);
    });
});